import SvgIcon from './SvgIcon/index.vue'
import Category from './Category/index.vue'
import { ComponentOptions } from 'vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const allGlobalComponent = {
  SvgIcon,
  Category
}
export default {
  install(app: ComponentOptions) {
    for (const [key, component] of Object.entries(allGlobalComponent)) {
      app.component(key, component)
    }

    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
}
